<div class="grid_container">
    <?php echo validation_errors('<strong>*','</strong><br/>'); ?>
    <?php
    $attributes = array(
        'id' => 'formAddGroups',
        'class' => 'form_container'
    );
    echo form_open_multipart('warehouses/submit', $attributes);?>
	<div class="grid_12">
		<div class="widget_wrap">
			<div class="widget_top">
				<span class="h_icon money"></span>
				<h6>Agregar Almacén</h6>
			</div>
			<div class="widget_content">
				<ul>
					<li>
						<div class="form_grid_12">
							<div class="form_input">
								<div class="form_grid_12 alpha">
									<span class="label_head">Nombre <span class="req">*</span></span>
									<?php
                                    $data = array(
                                        'name'        => 'name',
                                        'id'          => 'name',
                                        'class'       => 'noEmpty',
                                        'value'       => @field(set_value('name'), $warehouse->name),
                                        'tabindex'    => '1'
                                    );
                                    echo form_input($data);
                                    ?>
								</div>
								<span class="clear"></span>
							</div>
						</div>
					</li>
					<li>
						<div class="form_grid_12">
							<div class="form_input">
								<div class="form_grid_12 alpha">
									<span class="label_head">Dirección <span class="req">*</span></span>
									<?php
                                    $data = array(
                                        'name'        => 'text',
                                        'id'          => 'text',
                                        'class'       => 'noEmpty',
                                        'value'       => @field(set_value('text'), $warehouse->text),
                                        'tabindex'    => '1'
                                    );
                                    echo form_input($data);
                                    ?>
								</div>
								<span class="clear"></span>
							</div>
						</div>
					</li>
				</ul>
			</div>
	    </div>
		<br />
		<?php echo form_hidden("warehouse_id", @field($warehouse->id, "")); ?>
		<button type="submit" class="btn_small btn_orange"><span>Guardar</span></button>
	</div>
    <?php echo form_close(); ?>
	<span class="clear"></span>
</div>